jQuery(function($){
var rds = $('input[type="radio"]').parents('tr[align="center"]');
$(rds.get(0)).before('<tr align="center"><td bgcolor="#404040">Planets:</td><td colspan="2"><select id="awplus_planet" name="destination"></select></td></tr>');
var opts = '';
var sel, p, o, id, i;
i=0;
rds.each(function() {

  p = $('td:eq(0) a', this).text();
  o = $('td:eq(1) input', this).get(0);
  id = o.value;
  if (o.checked) { sel = i; }
  opts += '<option value="'+id+'">'+p+' - '+ id +'</option>';
  i++;

}).remove();
$('#awplus_planet').html(opts).get(0).selectedIndex = sel;

});
